// 通用 table 布局方式
// 主要用于颜色主题切换
.p-table-layout {

  // head 样式
  .p-layout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    margin-left: -1px;
    color: @layout-header-font-color;
    border-width: 0;
    border-color: @layout-header-border-color;
    border-bottom-width: 1px;
    border-style: solid;

    // 导航栏上的面包屑
    .ant-breadcrumb {

      .ant-breadcrumb-separator,
      &>span {
        color: @layout-header-font-color;
        opacity: 0.8;
      }

      &>span:last-child {
        color: @layout-header-font-color;
        opacity: 1;
      }
    }

    .ant-menu.ant-menu-root {
      background-color: @layout-header-background;

      &.ant-menu-horizontal {
        line-height: @layout-header-height - 2px;
        border: none;
      }
    }
  }

  // 右侧菜单样式
  .p-layout-sideBar {
    .app-logo {
      color: @menu-item-color;
      background-color: @menu-bg;
      border-right: 1px solid @general-border-color;
    }
  }

  // 重写 multi 显示效果 
  .p-content-layout_multi-tab.ant-pro-multi-tab {
    .ant-tabs-bar {
      padding-top: 0 !important;
      background-color: @multi-tabs-bg-color  !important;
      border: none;

      .ant-tabs-nav-container {
        margin-bottom: 0;
        height: @layout-multi-tab-height;
      }

      .ant-tabs-tab {
        position: relative;
        margin-right: 0;
        padding: 0 12px;
        height: @layout-multi-tab-height;
        color: @multi-tabs-color;
        line-height: @layout-multi-tab-height;
        background-color: @multi-tabs-bg-color;
        border: none;

        .ant-tabs-close-x {
          margin-left: 12px;
          margin-right: 0;
        }

        &::after {
          position: absolute;
          content: "";
          top: 8px;
          right: 0;
          width: 1px;
          height: 16px;
          background-color: @multi-tabs-divider-color;
        }

        &.ant-tabs-tab-active {
          color: @multi-tabs-active-color;
          border-radius: 0;
          background-color: @multi-tabs-active-bg-color;

          &::after {
            background-color: @multi-tabs-active-bg-color;
          }
        }

        &:hover {
          color: @multi-tabs-active-color;
        }

        &:has(+.ant-tabs-tab-active)::after {
          background-color: transparent;
        }
      }
    }
  }
}